Skip to content

Cypress#10

Open
ChrissyDev wants to merge 8 commits into
sttaran:masterfrom
ChrissyDev:cypress
Open

Cypress#10
ChrissyDev wants to merge 8 commits into
sttaran:masterfrom
ChrissyDev:cypress

Conversation

@ChrissyDev

Copy link
Copy Markdown

Please read and mark the following check list before creating a pull request (check one with "x"):

Short description of what this resolves:

Comment thread cypress/e2e/auth/login.spec.js Outdated
@@ -0,0 +1,11 @@
import AuthTab from "../../page-Objects/AuthTab.js";

const authTab = new AuthTab();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

authPage, why did you call it tab?

Comment thread cypress/page-Objects/AuthTab.js Outdated
@@ -0,0 +1,12 @@
import { faker } from '@faker-js/faker';

class AuthTab {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AuthPage or LoginPage

Comment thread cypress/page-Objects/AuthTab.js Outdated
import { faker } from '@faker-js/faker';

class AuthTab {
login() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass values into a method, do not generate it here

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

Comment thread cypress/page-Objects/SmartTablePage.js Outdated
import { faker } from '@faker-js/faker';

class SmartTablePage {
createUser() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass user into a method

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

@@ -0,0 +1,11 @@
import AuthPage from "../../page-Objects/AuthTab.js";

const authPage = new AuthPage();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move it to describe

Comment on lines +14 to +19
cy.get("tbody")
.should("be.visible")
.within(() => {
cy.get(".ng2-smart-row").should("have.length", 1);
smartTablePage.verifyCreatedUserData(newUser);
});

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this logic to POM

Comment thread cypress/page-Objects/AuthTab.js Outdated
import { faker } from '@faker-js/faker';

class AuthTab {
login() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

Comment thread cypress/page-Objects/SmartTablePage.js Outdated
import { faker } from '@faker-js/faker';

class SmartTablePage {
createUser() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

@sttaran sttaran left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not all comments are resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants